package main

import (
	// "fmt"
	"git.oschina.net/gladmo/manga/model"
	// "manga/spider/dm5"
	"git.oschina.net/gladmo/manga/spider/funmanga"
	"os"
)

func init() {
	//判断是否存在数据库文件,没有则创建且初始化
	_, err := os.Stat(".manga.db")
	if err != nil {
		db := model.Open()
		defer db.Close()
		db.First()
	}
}

func main() {
	funmanga.Funmanga()
}
